﻿
namespace TS2015.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("TbHeDaoTao")]
    public class TbHeDaoTao
    {
        public TbHeDaoTao()
        {
            TbBacDaoTaos = new HashSet<TbBacDaoTao>();
        }
        [Key]
        public int MaHeDaoTao { get; set; }

        [Required(ErrorMessage = "Không được để trống!")]
        [StringLength(50)]
        public string TenHeDaoTao { get; set; }

        public ICollection<TbBacDaoTao> TbBacDaoTaos { get; set; }
    }
}